package com.blockmeta.bbs.businesslibrary.pojo;

import com.google.gson.annotations.SerializedName;

/**
 * @author AirThor
 * @date 2020/2/3.
 */
public class LoginPOJO {

    /**
     * social_exist :
     * token : eyJ0eXBlIjoiMSIsImFsZyI6IkhTNTEyIn0.eyJkZXZpY2VfaWQiOiIzNTgyNDAwNTExMTExMTAiLCJleHBpcmVfdGltZSI6MTU4MDcxNDI4NCwicHJvZHVjdF9jb2RlIjoicWtsMTIzIiwic291cmNlIjoiYXBwIiwidWlkIjoyNTE0ODMsInVzZXJfdHlwZSI6IjEifQ.f5dh5PpFB5TivLgowOM7zKTXxvL-e84-AcOTHLJleMlVP4gUPjh42SCTshag6pEvkG2n78x48hAEU_2yPDyqcg
     * user_info : {"avatar":"https://bbtcdn.8btc.com/uc_server/data/avatar/000/25/14/83_avatar_middle.jpg","bind_info":{"qq":{"avatar":"","nickname":"","openid":"","openid_web":"","uid":"251483","username":""},"weibo":{"openid":"0","openid_web":"0","sina_username":"0","uid":"251483","username":"0"},"weixin":{"openid":"0","uid":"251483"}},"date":"1517207726","email":"airthor@163.com","gold":529,"groupid":"11","grouptitle":"队长","is_viking":0,"login_credit":0,"logo":"","mobile":"13738860434","new_user_mark":0,"set_username_count":1,"social_exists":"","type":"login","uid":"251483","username":"寒鸦飞尽"}
     */

    @SerializedName("jwt")
    public String token;
    @SerializedName("user_info")
    public UserInfoBean userInfo;

    public static class UserInfoBean {
        /**
         * avatar : https://bbtcdn.8btc.com/uc_server/data/avatar/000/25/14/83_avatar_middle.jpg
         * bind_info : {"qq":{"avatar":"","nickname":"","openid":"","openid_web":"","uid":"251483","username":""},"weibo":{"openid":"0","openid_web":"0","sina_username":"0","uid":"251483","username":"0"},"weixin":{"openid":"0","uid":"251483"}}
         * date : 1517207726
         * email : airthor@163.com
         * gold : 529
         * groupid : 11
         * grouptitle : 队长
         * is_viking : 0
         * login_credit : 0
         * logo :
         * mobile : 13738860434
         * new_user_mark : 0
         * set_username_count : 1
         * social_exists :
         * type : login
         * uid : 251483
         * username : 寒鸦飞尽
         */

        @SerializedName("date")
        public String date;
        @SerializedName("email")
        public String email;
        @SerializedName("logo")
        public String logo;
        @SerializedName("mobile")
        public String mobile;
        @SerializedName("uid")
        public Integer uid;
        @SerializedName("user_name")
        public String userName;
        @SerializedName("nick_name")
        public String nickName;
        @SerializedName("individual_resume")
        public String individual_resume;
        @SerializedName("status")
        public String status;
        @SerializedName("bind_info")
        public BindInfoBean bindInfo;
        public static class BindInfoBean {
            /**
             * qq : {"avatar":"","nickname":"","openid":"","openid_web":"","uid":"251483","username":""}
             * weibo : {"openid":"0","openid_web":"0","sina_username":"0","uid":"251483","username":"0"}
             * weixin : {"openid":"0","uid":"251483"}
             */

            @SerializedName("qq")
            public QqBean qq;
            @SerializedName("weibo")
            public WeiboBean weibo;
            @SerializedName("weixin")
            public WeixinBean weixin;

            public static class QqBean {
                /**
                 * avatar :
                 * nickname :
                 * openid :
                 * openid_web :
                 * uid : 251483
                 * username :
                 */

                @SerializedName("avatar")
                public String avatar;
                @SerializedName("nickname")
                public String nickname;
                @SerializedName("openid")
                public String openid;
                @SerializedName("openid_web")
                public String openidWeb;
                @SerializedName("uid")
                public String uid;
                @SerializedName("username")
                public String username;
            }

            public static class WeiboBean {
                /**
                 * openid : 0
                 * openid_web : 0
                 * sina_username : 0
                 * uid : 251483
                 * username : 0
                 */

                @SerializedName("openid")
                public String openid;
                @SerializedName("openid_web")
                public String openidWeb;
                @SerializedName("sina_username")
                public String sinaUsername;
                @SerializedName("uid")
                public String uid;
                @SerializedName("username")
                public String username;
            }

            public static class WeixinBean {
                /**
                 * openid : 0
                 * uid : 251483
                 */

                @SerializedName("openid")
                public String openid;
                @SerializedName("uid")
                public String uid;
            }
        }
    }
}
